<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('index')}">文件列表</a></li>
		</ul>
		<form class="well form-inline margin-top-20" method="post" action="{:url('index')}">
			关键字:
			<input type="text" class="form-control" name="keyword" style="width: 200px;"
				   value="{$where_r.keyword|default=''}" placeholder="请输入关键字...">
			类别：
			<select class="form-control" style="width: 200px;" name="type">
				<option value="0">未选择</option>
				<option value="1" <eq name=":input('request.type')" value="1">selected</eq> >待投资项</option>
				<option value="2" <eq name=":input('request.type')" value="2">selected</eq> >策划案</option>
			</select>
			<input type="submit" class="btn btn-primary" value="搜索"/>
			<a class="btn btn-danger" href="{:url('index')}">清空</a>
		</form>
		<table class="table table-hover table-bordered margin-top-20">
			<thead>
				<tr>
					<!-- <th width="50">ID</th> -->
					<th>文件名</th>
					<th>区域</th>
					<th>售价</th>
					<th>注册资本</th>
					<th>上传时间</th>
					<th>上传人</th>
					<th>类别</th>
					<th>项目情况</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="lists" item="vo">
				<tr>
					<!-- <td>{$vo.id}</td> -->
					<td>{$vo.file_name}</td>
					<td>{$vo.areas}</td>
					<td>{$vo.selling_price}</td>
					<td>{$vo.registered_capital|floatval}万{$vo.cname}</td>
					<td>{$vo.create_time|date="Y-m-d",###}</td>
					<td>{$vo.user_nickname}</td>
					<td>
						<switch name="vo.type">
							<case value="1">待投资项</case>
							<case value="2">策划案</case>
						</switch>
					</td>
					<td>
						<switch name="vo.abutment">
							<case value="0">无</case>
							<case value="1">项目进行中</case>
						</switch>
					</td>
					<td>
						<a href="{$vo.file|cmf_get_file_download_url}">下载</a>
						<!--<a href="{:cmf_url('del',['id' => $vo['id']])}" class="js-ajax-dialog-btn"-->
						   <!--data-msg="是否删除该文件？">删除</a>-->
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}<li><a>共计 {$lists->total()} 条</a></li></div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>